package com.lrkj.property.domain;

import com.lrkj.common.annotation.Excel;
import com.lrkj.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 员工关联表对象 tr_employee
 *
 * @author yajun_ren
 * @date 2022-03-16
 */
@Data
public class Employee extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 员工ID */
    @Excel(name = "员工ID")
    private Long userId;

    /** 业务类型 */
    @Excel(name = "业务类型")
    private String businessType;

    /** 业务id */
    @Excel(name = "业务id")
    private String businessId;

    //员工账号
    private String userName;
    //员工名称
    private String nickName;
    //员工手机号
    private String phonenumber;
    //员工性别
    private String sex;
    //员工部门
    private String deptName;
    //员工岗位
    private String roleNames;

    private Long[] userIds;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("businessType", getBusinessType())
            .append("businessId", getBusinessId())
            .toString();
    }
}
